package com.umanji.board;

import java.io.FileNotFoundException;

import java.io.IOException;
import java.util.ArrayList;

import java.util.Collections;



import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;

import javax.persistence.NoResultException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.validation.ConstraintViolation;
import javax.validation.Validation;
import javax.validation.Validator;

import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.commons.CommonsMultipartFile;
import org.springframework.web.util.WebUtils;
import org.springframework.web.servlet.ModelAndView;

import com.google.gson.Gson;
import com.umanji.board.service.FreeService;
import com.umanji.board.service.NoticeService;
import com.umanji.board.service.QuestionService;
import com.umanji.building.domain.BuildingInfos;
import com.umanji.building.domain.PublicOfficialBuildings;

import com.umanji.building.domain.Buildings;
import com.umanji.building.service.BuildingService;
//import com.umanji.postgis.domain.PostGISBuilding;
import com.umanji.postgis.domain.Tbbi001;

import com.umanji.postgis.service.PostgisService;
import com.umanji.user.UserController;

/**
 * Handles requests for the application welcome page.
 */
@Controller
@RequestMapping(value="/board")
public class BoardController {

	private Logger logger = org.slf4j.LoggerFactory.getLogger(BoardController.class);

	private Validator validator = Validation.buildDefaultValidatorFactory().getValidator();
	
	@Autowired
	public BoardController(Validator validator) {
		this.validator = validator;
	}

    @Autowired
    private FreeService freeBoardService;
    
    @Autowired
    private NoticeService noticeBoardService;

    @Autowired
    private QuestionService questionBoardService;

    @RequestMapping(value = "/free", method = RequestMethod.GET)
    public @ResponseBody String getFreeBoardList(final HttpServletResponse response) {

    	return "";
    }

    public @ResponseBody String getFreeBoardArticle(final HttpServletResponse response) {

    	return "";
    }

    @RequestMapping(value = "/notice", method = RequestMethod.GET)
    public @ResponseBody String getNoticeBoardList(final HttpServletResponse response) {

    	return "";
    }

    @RequestMapping(value = "/question", method = RequestMethod.GET)
    public @ResponseBody String getQuestionBoardList(final HttpServletResponse response) {

    	return "";
    }
}
